package com.bluestar.tools.module.main;

import com.bluestar.tools.R;
import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.viewholder.BaseViewHolder;

import java.util.List;

/**
 * @author : lifei
 * 创建时间： 19-10-10
 * 更改时间： 19-10-10
 * Email : allen.lee723@qq.com
 * @version :
 * Description：
 */
public class MainAdapter extends BaseQuickAdapter<MainBean, BaseViewHolder> {

    private MainPresenter mainPresenter;

    public MainAdapter(List<MainBean> data, MainPresenter mainPresenter) {
        super(R.layout.item_main, data);
        this.mainPresenter = mainPresenter;
    }

    @Override
    protected void convert(BaseViewHolder holder, MainBean item) {
        holder.setText(R.id.item_main_bt, item.getItemName());
    }
}
